Skip to content

Add cascadeFrom config and simplify cascade API#71

Merged
theoephraim merged 2 commits into
mainfrom
feat/cascade-from
May 5, 2026
Merged

Add cascadeFrom config and simplify cascade API#71
theoephraim merged 2 commits into
mainfrom
feat/cascade-from

Conversation

@theoephraim
Copy link
Copy Markdown
Member

Summary

  • Adds consumer-side cascadeFrom as the complement to cascadeTo, allowing packages to declare cascade relationships from either direction
  • Both cascadeTo and cascadeFrom now support an array shorthand with sensible defaults (trigger: "patch", bumpAs: "match") alongside the object form for custom rules
  • Both always apply regardless of the updateInternalDependencies setting

This solves the case where a package bundles a devDependency (e.g., astro-integration bundling vite-integration) and needs to re-release when that dependency is bumped — previously impossible with the default updateInternalDependencies: "out-of-range" setting.

Usage

// Simple — array of package names/globs
{ "cascadeFrom": ["@varlock/vite-integration"] }

// With custom rules
{ "cascadeFrom": { "@varlock/vite-integration": { "trigger": "minor", "bumpAs": "patch" } } }

Test plan

  • 6 new tests for cascadeFrom (array shorthand, match default, trigger threshold, globs, proactive mode, coexistence with cascadeTo)
  • All 218 existing tests pass
  • Type check passes

Add consumer-side `cascadeFrom` as the complement to `cascadeTo`, allowing
packages to declare cascade relationships from either direction. Both now
support an array shorthand with sensible defaults (trigger: "patch",
bumpAs: "match") alongside the existing object form for custom rules.

This solves the case where a package bundles a devDependency (e.g.,
astro-integration bundling vite-integration) and needs to re-release
when that dependency is bumped — previously impossible with the default
`updateInternalDependencies: "out-of-range"` setting since devDeps are
skipped in Phase A and Phase C was gated on the global setting.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

bumpy-frog

The changes in this PR will be included in the next version bump.

minor Minor releases

  • @varlock/bumpy 1.7.1 → 1.8.0

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@theoephraim theoephraim merged commit 771fe5a into main May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant